<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="${pageContext.request.contextPath }/user/update" method="post" enctype="multipart/form-data">
		<input type="hidden" name="uid" value="${u.uid}"/>
		用户名:<input type="text" name="uname" value="${u.uname}"/><br>
			<input type="hidden" name="imgpath" value="${u.imgpath}">
		图片:<img src="/pic/${u.imgpath}"><input type="file" name="imgUpload"><br>
		密码:<input type="password" name="upass" value="${u.upass }"/><br>
		性别:<input type="text" name="gender" value="${u.gender }"/><br>
		年龄:<input type="text" name="age" value="${u.age }"/><br>
		生日:<input type="text" name="birthday" value='<fmt:formatDate value="${u.birthday}" pattern="yyyy-MM-dd"/>'/><br>
		<input type="submit" value="修改" />
	</form>
</body>
</html>